package com.loop.homework.animal;

public class Test {
    public static void main(String[] args) {

        //测试老王养的2岁的黑色的狗
        Person personWan = new Person("老王",30);
        personWan.keepPet(new Dog(2,"黑"),"骨头");
        //测试老李养的3岁的灰色的猫
        Person personLi = new Person("老李",30);
        personLi.keepPet(new Cat(3,"灰"),"鱼");
    }
}
